package me.spring.cloud.components.starter.lock;

import me.spring.cloud.components.starter.lock.configuration.RedisLockConfiguration;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

/**
 * 启用redis分布锁注解方式
 * @author luffy
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@EnableConfigurationProperties(RedisProperties.class)
@Import(RedisLockConfiguration.class)
public @interface EnableRedisLock {

}
